
__metaclass__ = type
class fileManger:
	def __init__(self, path):
		super(fileManger, self).__init__()
		self.path = path
	
	def readfiles(self):
		try:
			f = open(self.path)
			for line in  f.readlines():
				newline = line.replace('	', ',')
				yield eval(newline)
		except IOError:print 'IOError error'
		finally:
			if f: f.close()

f = fileManger('/Users/mac/Desktop/datas.txt')
line = f.readfiles()
print line.next()
print line.next()
print line.next()
print line.next()
print line.next()
print line.next()
print line.next()






